import 'package:flutter/material.dart';
import 'package:tdesign_flutter/tdesign_flutter.dart';

class LevelSpan extends StatelessWidget {
  final String level;

  const LevelSpan({super.key, required this.level});

  @override
  Widget build(BuildContext context) {
    return TDTag(
      level,
      textColor: Colors.white,
      backgroundColor: Colors.purple,
      shape: TDTagShape.round,
      size: TDTagSize.small,
    );
  }
}
